<!-- Formulaire de connexion -->
{if $access == false}
<div class="pz-block-login {$blockParams.class}">
    <form name="FormLogin" action="" method="POST" >
        <table>
            <tr>
                <th>
                    <label for="form_label_login">{if $blockParams.loginLabel}{$blockParams.loginLabel}{else}{t}Login{/t}{/if} : </label>
                </th>
            </tr>
            <tr>
                <td>
                    <input type="text" id="form_label_login" name="FormLogin[login]" />
                </td>
            </tr>
            <tr>
                <th><label for="form_label_pwd">{t}Password{/t} : </label></th>
            </tr>
            <tr>
                <td>
                    <input type="password" id="form_label_pwd" name="FormLogin[password]" />
                </td>
            </tr>
            {if $blockParams.displayRememberMe}
            <tr>
                <td>
                    <input type="checkbox" id="remember" class="checkbox" name="FormLogin[remember]" />
                    <label for="remember">{t}Remember me{/t}</label>
                </td>
            </tr>
            {/if}
            {if $blockParams.displayForgottenPassword}
            <tr>
                <td>
                    <a href="{targetUrl target="userPassword"}">{t}Forgot password?{/t}</a>
                </td>
            </tr>
            {/if}
            {if $blockParams.displayRegistration}
            <tr>
                <td>
                    <a href="{targetUrl target="userRegister"}">{t}Regiter?{/t}</a>
                </td>
            </tr>
            {/if}
            <tr>
                <td><input type="submit" name="FormLogin[submit]" value="{if $blockParams.loginButLabel}{$blockParams.loginButLabel}{else}{t}Login in{/t}{/if}" /><td>
            </tr>
            {if $errors!=""}
            <tr>
                <td>
                    <div class="error">{$errors.errors}</div>
                </td>
            </tr>
            {/if}
        </table>
    </form>
</div>
{else if $blockParams.displayConnectedPad}
<div class="pz-block-connected {$blockParams.class}">
    <table>
        {if $blockParams.displayName || $blockParams.displayLogin}
        <tr>
            <td>
                {if $blockParams.displayName}
                <div>{$user->getLastName()} {$user->getFirstName()}</div>
                {/if}
                {if $blockParams.displayLogin}
                <div>{$user->getLogin()}</div>
                {/if}
            </td>
        </tr>
        {/if}
        {if $blockParams.displayLogout}
        <tr>
            <td>
                <a href="{targetUrl target="userLogout"}">{if $blockParams.logoutLabel}{$blockParams.logoutLabel}{else}{t}Logout{/t}{/if}</a>
            </td>
        </tr>
        {/if}
    </table>
</div>
{/if}